//
//  CLSecurity.swift
//  CLExtension
//
//  Created by CharlieLiao on 2018/1/17.
//  Copyright © 2018年 Charlie. All rights reserved.
//

import Foundation


extension String {
    
    var md5: String {
        return CLSecurityHelper.md5(self)
    }
    
    var sha1: String? {
        if let data = self.data(using: .utf8) {
            return CLSecurityHelper.sha1(data)
        }
        return nil
    }
}
